#include "lcd_app.h"
#include "stdio.h"


void Lcd_Sprinrf(uint8_t line,char *format,...)	
{
 char string[21];
	va_list arg;
	va_start(arg,format);
	vsprintf(string, format, arg);
	va_end(arg);
	LCD_DisplayStringLine(line,(u8 *)string);


}

void lcd_proc(void)
{
	
	Lcd_Sprinrf(Line0,"key_state:");
	Lcd_Sprinrf(Line1,"%d",short_count);
	Lcd_Sprinrf(Line2,"%d",long_count);
	Lcd_Sprinrf(Line3,"%d",twocount);



}
	
